<template>
  <div style="page-break-before: always">
    <h4>附件1</h4>
    <div class="text-center">
      <h3 class="my-5">反担保承诺书</h3>
    </div>
    <div class="font-weight-bold">
      <span>反担保承诺人：</span>
      <span class="text-decoration">{{ guard.gua_entity || '' }}</span>
    </div>
    <div class="font-weight-bold">
      <span>证件号：</span>
      <span class="text-decoration">{{ guard.gua_entity_cert_no || '' }}</span>
    </div>
    <div class="font-weight-bold">
      <span>住 址：</span>
      <span class="text-decoration">{{ guard.gua_entity_address || '' }}</span>
    </div>
    <div class="font-weight-bold">
      <span>联系电话：</span>
      <span class="text-decoration">{{ guard.gua_entity_mobile || '' }}</span>
    </div>
    <div class="mt-5"></div>
    <p class="text-indent">
      <span>兹因申请人</span>
      <span class="text-decoration">{{ relatedData.customer_name || '-' }}</span>
      <span>借款事宜（编号为</span>
      <span class="text-decoration">{{ contract.credit_contract_no || '' }}</span>
      <span>
        号的{{ enumContractType[contract.contract_type] || '授信合同下' }}
        <span v-if="+contract.contract_type === 1">下</span>
        的借款）委托{{ acceptAgencyName }}提供担保。本人自愿且同意作为反担保人为申请人向{{
          acceptAgencyName
        }}提供连带保证责任。本人郑重承诺：
      </span>
    </p>
    <p class="text-indent">一、同意在以下范围内承担连带保证责任：</p>
    <p class="text-indent">
      1、{{ acceptAgencyName }}代申请人清偿的全部债务，包括：本金、利息、违约金、滞纳金、赔偿金等。
    </p>
    <p class="text-indent">
      2、申请人与{{ acceptAgencyName }}签订的《委托担保合同》中约定的申请人应向{{
        acceptAgencyName
      }}支付的违约金、滞纳金、赔偿金、担保费等。
    </p>
    <p class="text-indent">
      3、{{
        acceptAgencyName
      }}行使追偿权而产生的费用，包括诉讼费、诉讼保全费、律师费、差旅费、鉴定费、评估费等费用。
    </p>
    <p class="text-indent">
      二、同意以包括但不限于下列资产或措施向{{ acceptAgencyName }}提供反担保：名下所有收入及资产。
    </p>
    <p class="text-indent">
      三、如申请人未能按贷款主合同约定时间、期次归还借款而导致担保公司代偿的，担保公司代偿的部分及因代偿而产生的费用由本人承担连带保证责任。
    </p>
    <p class="text-indent">四、担保的期限为主合同届满之日起两年。</p>
    <div class="mt-5"></div>
    <div class="d-flex-end">
      <div>
        <div>承诺人（盖章）：</div>
        <div>（或其授权代理人）</div>
      </div>
      <div class="border-bottom-dark"></div>
    </div>
    <div class="my-5"></div>
    <div class="text-right">
      <span class="text-decoration">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </span>
      <span>年</span>
      <span class="text-decoration">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </span>
      <span>月</span>
      <span class="text-decoration">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </span>
      <span>日</span>
    </div>
  </div>
</template>

<script>
import { enumContractType } from '@/credit/plugins/enumTown'
export default {
  components: {},
  props: {
    contract: {
      type: Object,
      default: () => ({}),
    },
    guard: {
      type: Object,
      default: () => ({}),
    },
    relatedData: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {
      enumContractType,
    }
  },
  computed: {
    replyFunds() {
      return this.contract.reply_funds || ''
    },
    acceptAgencyName() {
      return this.contract.accept_entrust_entity_name || ''
    },
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>
<style lang="scss" scoped>
.text-indent {
  text-indent: 2.4rem;
}
.text-decoration {
  text-decoration: underline;
}
.border-noprint {
  border: 1px solid $border-color;
}
.border-bottom-dark {
  border-bottom: 1px solid #333;
}
.d-flex-end {
  display: flex;
  justify-content: flex-end;
}
</style>
